package com.dzl.card.service.impl;

import com.dzl.base.service.BaseServiceImpl;
import com.dzl.card.dao.WelfareCardMoveRecordMapper;
import com.dzl.card.pojo.WelfareCardMoveRecord;
import com.dzl.card.pojo.query.WelfareCardMoveRecordQuery;
import com.dzl.card.pojo.vo.WelfareCardMoveRecordVo;
import com.dzl.card.service.WelfareCardMoveRecordService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 卡转移记录(WelfareCardMoveRecord)表服务实现类
 *
 * @author caobucao
 * @date 2021-11-04 10:28:58
 */
@Service
public class WelfareCardMoveRecordServiceImpl extends BaseServiceImpl<WelfareCardMoveRecord> implements WelfareCardMoveRecordService {

    @Autowired
    private WelfareCardMoveRecordMapper mapper;

    @Override
    public PageInfo<WelfareCardMoveRecordVo> getListPage(WelfareCardMoveRecordQuery query) {
        PageHelper.startPage(query);
        List<WelfareCardMoveRecordVo> list = mapper.getWelfareCardMoveRecordVoList(query);
        PageInfo<WelfareCardMoveRecordVo> page = new PageInfo<WelfareCardMoveRecordVo>(list);
        return page;
    }
}
